import request from '@/utils/request'

export default {
  // 分页查询讲师
  pageListCourse(currentPage, size, courseVo) {
    return request({
      url: `/eduService/frontCourse/pageCourse/${currentPage}/${size}`,
      method: 'post',
      data: courseVo
    })
  },

  // 获取课程分类
  getSubjectTree() {
    return request({
      url: `/eduService/subject/getAllSubject`,
      method: 'get'
    })
  },

  // 获取课程详情
  getCourseShowInfo(id) {
    return request({
      url: `/eduService/frontCourse/getCourseInfo/${id}`,
      method: 'get'
    })
  }

}
